'''
Author: duliang 
Date: 2024-1-25 16:07:35
LastEditors: duliang thinktanker@163.com
LastEditTime: 2024-03-12 22:06:36
FilePath: \sajj\localORC.py
Description: 截屏识别，串口发送给esp32c3，转发服务器
'''
import time
import numpy as np
# from paddleocr import PaddleOCR
from llj_snapshot import snapshot, markpic, cutpic, cutTable
from mySerial import getCOMport, openCOM
# from shortcontent import shortcontent
import re
import zlib
# from multiprocessing import Process
# import cv2
# import bz2
# ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 6)
# # className = "ConsoleWindowClass"
# # winName = "水位记录-baidu"
# className = "ctDSP"
# winName = "主接线"
# ocr = PaddleOCR(use_angle_cls=False, use_gpu=False)


def getOCRtext(image):
    '''
    飞桨识别文字
    '''
    img_convert_ndarray = np.array(image)
    t = time.time()
    ocr_text = ocr.ocr(
        img=img_convert_ndarray,
        #   det=False,
        #   rec=False,
        cls=False)
    # print(ocr_text)
    print(time.time() - t)
    return ocr_text


def compress_string(string: str):
    # compressed_data = bz2.compress(bytes(string, 'utf-8'))
    compressed_data = zlib.compress(bytes(string, 'utf-8'))
    return compressed_data


if __name__ == "__main__":

    # results = []
    # cut_paths, cut_images = cutTable('test.png', 1)  #正式用
    # # table_engine = PPStructure(show_log=True)
    # process_list = []
    # for index, img in enumerate(cut_images):
    #     # img = cv2.imread(f'./image/{cut_paths[index]}.jpg')
    #     # results.append(table_engine(img))
    #     results.append(getOCRtext(img))
    # #     p = Process(target=getOCRtext, args=(img, ))  #实例化进程对象
    # #     p.start()
    # #     process_list.append(p)
    # # for p in process_list:
    # #     p.join()
    # sendContent = ''
    # for result in results:
    #     for t0 in result:
    #         for t1 in t0:
    #             sendContent += ' ' + str(t1[-1][0])
    # for index, r in enumerate(results):
    #     markpic(f'./image/{cut_paths[index]}.jpg', resultlist=r)
    # # with open('./test.txt', 'w', encoding='utf-8') as f:
    # #     f.write(str(sendContent))
    sendContent = ' 38.06 38.10 38.12 2.4 3.7 2.9 142 2 1.00 38.06 38.13 38.12 1.3 1.7 1.9 0 0 1.00 38.04 38.09 38.09 2.0 2.2 1.7 146 6 1.00 0.00 0.00 0.00 0.0 -2.4 0.0 0 0 1.00 0.00 0.00 0.00 0.4 0.5 0.0 0 0 1.00 0 A 29.1 B 33.6 C 31.2 D 45.1 A 0.0 B 0.0 C 0.0 D 0.0 0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 0.00 0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 3.42 0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 366.40 0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1. 000 0.00 0.00 5 2. 6 4.7 10 3.3 3. 5 4. 4  4. 2 4. 4 4. 4 4 4. 0 5 4. 7 4. 2 4. 9 2 3. 9 3.6 3 3.5 3.1 4. 2 4. 4  4. 3 4. 3 4 4. 3 6 4. 9 4. 1 5. 0 3 11.7 3.5 3 3.5 3.7 4. 7 4. 6 4. 6 4. 7 4 4. 6 6 5. 4 4. 4 5.6 5 4.7 3.4 7 3. 9 4.0 4.7 2.0 5.0 4.9 3 4.8 -2 5.7 4.7 5.9 0.00 0.0 恒cos中 0.0 0.5 0.00 0.0 0.0 0.0 0.00 0.0 0.0 0.0 0.00 0.0 0.0 0.0 -3.89 -3.90 -3.37 -3.97 进水母管压力 ：0.00MPa 进水母管温度：0.94°℃ ①冷水机组出水温度：-1.05℃ ②冷水机组出水温度：-0.15℃ ③冷水机组出水温度：-0.14°C 上游栅前 水位： 18.53 m 下游栅前水位：15.93 下游棚后水位：15.97m 水位差：2.56 m 瞬时流量： 0.00 m3/s 平均流速： 0.00 m/s 正向累 计流量： 193161. 7210* m* 反向累计流量： 85006.50 10* m3'
    print(sendContent)
    sendContent = sendContent.replace('. ', '.').replace('。', '0')
    # sendContent = re.sub(r'[\u4e00-\u9fa5]|35kV|6kV|1#|2#|3#|4#', r' ',
    #                      sendContent)
    # 筛除所有不要的文字，替换成空格
    # patten = r'[\u4e00-\u9fa5]|35kV|6kV|1#|2#|3#|4#|m3|：|10m|°℃|m|10m²|10\*|[^0-9.]'
    patten = r'35kV|6kV|1#|2#|3#|4#|m3|：|10m|m|10m²|10\*|[^-\d.]'
    sendContent = re.sub(patten, ' ', sendContent)
    # 多余2个空格转成1个空格
    sendContent = re.sub(r' {2,}', ' ', sendContent)
    #  35kV   38.06 38.10 38.12 2.4 3.7 2.9 142 2 1.00    38.06 38.13 38.12 1.3 1.7 1.9 0 0 1.00    38.04 38.09 38.09 2.0 2.2 1.7 146 6 1.00 6kV   0.00 0.00 0.00 0.0 -2.4 0.0 0 0 1.00    0.00 0.00 0.00 0.4 0.5 0.0 0 0 1.00    0 A 29.1 B 33.6    C 31.2 D 45.1 A 0.0 B 0.0    C 0.0 D 0.0 1#   0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 0.00 2#   0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 3.42 3#   0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 366.40 4#   0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 0.00 1#   5 2.6 4.7 10 3.3 3.5 4.4 4.2 4.4 4.4  4 4.0 5 4.7 4.2 4.9 2#   2 3.9 3.6 3 3.5 3.1 4.2 4.4  4.3 4.3 4 4.3 6 4.9 4.1 5.0 3#   3 11.7 3.5 3 3.5 3.7 4.7 4.6 4.6 4.7 4 4.6 6 5.4 4.4  5.6 4#   5 4.7 3.4 7 3.9 4.0 4.7 2.0 5.0 4.9 4.8 -2 5.7 4.7 5.9 1#   0.00 0.0  cos  0.0 0.5 0.5 2 2 0 0 0 0 -3.89 2#   0.00 0.0 0.0 0.0 0.0 0 0 0 -3.90 3#   0.00 0.0 0.0 0.0 0.0 0 0 0 0 0 0 0 -3.37 4#   0.00 0.0 0.0 0.0 0.0 0 0 0 0 -3.97           ：0.00MPa       ：0.94℃ ①        ：-1.05℃ ②        ：-0.15℃ ③        ：-0.14℃       ：18.53 m       ：15.93m       ：15.97m    ：2.56 m     ： 0.00 m/s     ： 0.00 m/s            : 193161.7210* m3       : 85006.50 10* m3
    # sendContent = re.sub(r'35kV|6kV|1#|2#|3#|4#', ' ', sendContent)
    #  &   38.06 38.10 38.12 2.4 3.7 2.9 142 2 1.00    38.06 38.13 38.12 1.3 1.7 1.9 0 0 1.00    38.04 38.09 38.09 2.0 2.2 1.7 146 6 1.00 &   0.00 0.00 0.00 0.0 -2.4 0.0 0 0 1.00    0.00 0.00 0.00 0.4 0.5 0.0 0 0 1.00    0 A 29.1 B 33.6    C 31.2 D 45.1 A 0.0 B 0.0    C 0.0 D 0.0 1#   0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 0.00 2#   0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 3.42 3#   0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 366.40 4#   0.00 0.00 0.00 0.0 0.0 0.0 0.00 0.00 1.000 0.00 0.00 1#   5 2.6 4.7 10 3.3 3.5 4.4 4.2 4.4 4.4  4 4.0 5 4.7 4.2 4.9 2#   2 3.9 3.6 3 3.5 3.1 4.2 4.4  4.3 4.3 4 4.3 6 4.9 4.1 5.0 3#   3 11.7 3.5 3 3.5 3.7 4.7 4.6 4.6 4.7 4 4.6 6 5.4 4.4  5.6 4#   5 4.7 3.4 7 3.9 4.0 4.7 2.0 5.0 4.9 4.8 -2 5.7 4.7 5.9 1#   0.00 0.0  cos  0.0 0.5 0.5 2 2 0 0 0 0 -3.89 2#   0.00 0.0 0.0 0.0 0.0 0 0 0 -3.90 3#   0.00 0.0 0.0 0.0 0.0 0 0 0 0 0 0 0 -3.37 4#   0.00 0.0 0.0 0.0 0.0 0 0 0 0 -3.97           ：0.00MPa       ：0.94℃ ①        ：-1.05℃ ②        ：-0.15℃ ③        ：-0.14℃       ：18.53 m       ：15.93m       ：15.97m    ：2.56 m     ： 0.00 m/s     ： 0.00 m/s            : 193161.7210* m3       : 85006.50 10* m3
    sendContent = re.findall(r'-{0,1}\d+\.{0,1}\d{0,3}', sendContent)
    print(len(sendContent), sendContent)
    result = ' '.join(sendContent)
    print(len(result), result)
    result = compress_string(result) + b'END'
    print(len(result), result)
    # result = b'x\x9c\x9dR\tn\x041\x08\xfb\n\x1f\x18D\xc2\x91\xe4\xff\x1f\xab!\xe9\xb6\xbb\xd3\x95\xdaj\x84s`\x8e1\xd1\xc9\x12\xa4\x93\x9b\x14v\xeal\xa4<\xb0.j\x8635\x96r\x1e\xa2\x1ebc\x85\r\xd8"\xc1\xf7\xa0Y\xe1:\xd8Y`}S-(6Qn@W\x96\xce\xcd#\xdb\x8d\x94~\x7f\xe1P_\xdcH\x95\xd1^C!s\x1c\x8b\xf2l\xaf\xe5\xee\xae\xcc\xf7\x13\xf5\xb7A\xca\xd0\xeb\xcfA\x11l\xffl\xd0\xa1l\x90\xa5\xb2Y\x1d\x93\x81:\x06\x95,u\xa8\x15\x06Lj\xd2\xf6=\x86\x02&\x06\x94\x92U\x8cB\xb2\xaf\x18\xddV\x18\xc57\xf8\x1dY0\xf1\x9cc\x85\x9c\xc0q\x12\xc7\xb1Q\x819g?\r8N\xbb<\x04\xa2Q\xa5\xb3%\xabW&\x958\x8bd\xd9\x89W\x80\x8b\x9d\xd4\xf3e=\xab\xe1\xef\xe5y\x7fq)\xcf\x95\xb8j\xaf\xa3\xf6\xe3\x93\xb8\x8c.(\xebt\t\xb7\x8dFm\xb2\xe3o\xd1\xc2\xc6l\xd5\xe3\xfb,\x96\xb6\x80\x18\x9d\xa6\x8b\x04\xbb|\x00\xc2\x9f\x94\xbaEND'
    # openCOM(comport='COM3', sendContent=result)
#  38.06 38.10 38.12 2.4 3.7 2.9 142 2 1.00
# 38.06 38.13 38.12 1. 3 1.7 1.9 0 0 1.00
# 38.04 38.09 38.09 2.0 2.2 1.7 146 6 1. 00
# 0.00 0.00 0.00 0.0 -2.4 0.0 0 0 1. 00
# 0.00 0.00 0.00 0.4 0.5 0.0 0 0 1.00
# 0 A 29.1 B 33.6 C 31.2 D 45.1 A 0.0 B 0.0 C 0.0 D 0.0
# 0. 00 0. 00 0. 00 0. 0 0. 0 0. 0 0. 00 0. 00 1. 000 0.00 0. 00
# 0. 00 0. 00 0. 00 0. 0 0. 0 0. 0 0. 00 0. 00 1. 000 0. 00 3.42
# 0. 00 0. 00 0. 00 0.0 0.0 0.0 0. 00 0. 00 1. 000 0. 00 366. 40
# 0. 00 0. 00 0. 00 0. 0 0.0 0. 0 0. 00 0. 00 1. 000 0.00 0. 00
# 5 2.6 4. 7 10 3.3 3.5 4. 4  4. 2 4. 4 4. 4 4 4.0 5 4.7 4. 2 4. 9
# 2 3.9 3.6 3 3.5 3.1 4. 2 4. 4  4. 3 4. 3 4 4. 3 6 4. 9 4. 1 5. 0
# 3 11.7 3.5 3 3.5 3.7 4.7 4. 6 4. 6 4. 7 4 4.6 6 5. 4 4. 4  5.6
# 5 4.7 3.4 3.9 4.0 4.7 2.0 5. 0 4.9 3 4.8 -2 5.7 4.7 5.9
# 0.00 0.0 恒cos中 0.0 0.5 0.00 0.0 0.0 0.0 0.00 0.0 0.0 0.0 0.00 0.0 0.0 0.0
# -3.89 -3.90 -3.37 -3.97
# 进水母管压力：0.00MPa 进水母管温度：0.94℃ ①冷水机组出水温度：-1.05℃ ②冷水机组出水温度：-0.15°C ③冷水机组出水温度：-0.14℃
# 上游栅前水位： 下游栅前水位：15.93 下游栅后水位：15.97 水位差： 2.56 m 瞬时流量： 0. 00 m3/s m 平均流速：
# 正向累计流量： 193161. 7210* m3 反向累计流量：

# 35kV进线 38.06 38.10 38.12 2.4 3.7 2.9 142 2 1.00
# 主变 38.06 38.13 38.12 1.3 1.7 1.9 0 0 1.00
# 所变 38.04 38.09 38.09 2.0 2.2 1.7 146 6 1.00
# 6kV进线 0.00 0.00 0.00 0.0 -2. 4 0.0 0 0 1. 00
# 站变 0.00 0.00 0.00 0.4 0.5 0.0 0 0 1.00
# 主变 0 A 29.1 B 33.6
# 所变 C 31.2 D 45.1 A 0.0 B 0.0
# 站变 C 0.0 D 0.0
# 1#机组 0. 00 0. 00 0. 00 0. 0 0. 0 0. 0 0. 00 0. 00 1. 000 0.00 0.00
# 2#机组 0. 00 0. 00 0. 00 0. 0 0. 0 0. 0 0.00 0. 00 1. 000 0. 00 3.42
# 3#机组 0. 00 0. 00 0. 00 0.0 0.0 0.0 0. 00 0. 00 1. 000 0. 00 366. 40
# 4#机组 0.00 0. 00 0.00 0.0 0.0 0. 0 0.00 0. 00 1. 000 0.00 0.00
# 1#机组 5 2.6 4.7 10 3.3 3.5 4. 4 4. 2 4. 4 4. 4  4 4. 0 5 4.7 4. 2 4.9
# 2#机组 2 3.9 3.6 3 3.5 3.1 4.2 4. 4  4.3 4. 3 4 4.3 6 4. 9 4. 1 5. 0
# 3#机组 3 11.7 3.5 3 3.5 3.7 4.7 4. 6 4. 6 4.7 4 4. 6 6 5. 4 4. 4  5.6
# 4#机组 5 4.7 3.4 7 3.9 4.0 4.7 2.0 5.0 4.9 4.8 -2 5.7 4.7 5.9
# 1#机组 0. 00 0. 0 恒cos中 0. 0 0.5 0.5 2 2 。 。 。 。 -3.89
# 2#机组 0.00 0. 0 0. 0 0.0 0.0 。 。 。 -3. 90
# 3#机组 0. 00 0. 0 0.0 0.0 0.0 。 。 。 。 。 。 。 -3.37
# 4#机组 0.00 0.0 0.0 0.0 0.0 0 。 。 。 -3.97
# 辅机信号进水母管压力：0.00MPa 进水母管温度：0.94℃ ①冷水机组出水温度：-1.05℃ ②冷水机组出水温度：-0.15℃ ③冷水机组出水温度：-0.14℃
# 上游栅前水位：18.53 m 下游栅前水位：15.93m 下游栅后水位：15.97m 水位差：2.56 m 瞬时流量： 0.00 m/s 平均流速： 0.00 m/s
# 公用信号 正向累计流量: 193161. 7210* m3 反向累计流量: 85006. 50 10* m3

# '38.06', '38.10', '38.12', '2.4', '3.7', '2.9', '142', '2', '1.00',
# '38.06', '38.13', '38.12', '1.3', '1.7', '1.9', '0', '0', '1.00',
# '38.04', '38.09', '38.09', '2.0', '2.2', '1.7', '146', '6', '1.00',
# '0.00', '0.00', '0.00', '0.0', '-2.4', '0.0', '0', '0', '1.00',
# '0.00', '0.00', '0.00', '0.4', '0.5', '0.0', '0', '0', '1.00',
# '0', '29.1', '33.6', '31.2', '45.1', '0.0', '0.0', '0.0', '0.0',
# '0.00', '0.00', '0.00', '0.0', '0.0', '0.0', '0.00', '0.00', '1.000', '0.00', '0.00',
# '0.00', '0.00', '0.00', '0.0', '0.0', '0.0', '0.00', '0.00', '1.000', '0.00', '3.42',
# '0.00', '0.00', '0.00', '0.0', '0.0', '0.0', '0.00', '0.00', '1.000', '0.00', '366.40',
# '0.00', '0.00', '0.00', '0.0', '0.0', '0.0', '0.00', '0.00', '1.000', '0.00', '0.00',
# '5', '2.6', '4.7', '10', '3.3', '3.5', '4.4', '4.2', '4.4', '4.4', '4', '4.0', '5', '4.7', '4.2', '4.9',
# '2', '3.9', '3.6', '3', '3.5', '3.1', '4.2', '4.4', '4.3', '4.3', '4', '4.3', '6', '4.9', '4.1', '5.0',
# '3', '11.7', '3.5', '3', '3.5', '3.7', '4.7', '4.6', '4.6', '4.7', '4', '4.6', '6', '5.4', '4.4', '5.6',
# '5', '4.7', '3.4', '7', '3.9', '4.0', '4.7', '2.0', '5.0', '4.9', '4.8', '-2', '5.7', '4.7', '5.9',
# '0.00', '0.0', '0.0', '0.5',
# '0.00', '0.0', '0.0', '0.0',
# '0.00', '0.0', '0.0', '0.0',
# '0.00', '0.0', '0.0', '0.0',
# '-3.89', '-3.90', '-3.37', '-3.97',
# '0.00', '0.94', '-1.05', '-0.15', '-0.14',
# '18.53', '15.93', '15.97', '2.56', '0.00', '0.00',
# '193161.72', '85006.50'

# x\x9c\x9dR\tn\x041\x08\xfb\n\x1f\x18D\xc2\x91\xe4\xff\x1f\xab!\xe9\xb6\xbb\xd3\x95\xdaj\x84s`\x8e1\xd1\xc9\x12\xa4\x93\x9b\x14v\xeal\xa4<\xb0.j\x8635\x96r\x1e\xa2\x1ebc\x85\r\xd8"\xc1\xf7\xa0Y\xe1:\xd8Y`}S-(6Qn@W\x96\xce\xcd#\xdb\x8d\x94~\x7f\xe1P_\xdcH\x95\xd1^C!s\x1c\x8b\xf2l\xaf\xe5\xee\xae\xcc\xf7\x13\xf5\xb7A\xca\xd0\xeb\xcfA\x11l\xffl\xd0\xa1l\x90\xa5\xb2Y\x1d\x93\x81:\x06\x95,u\xa8\x15\x06Lj\xd2\xf6=\x86\x02&\x06\x94\x92U\x8cB\xb2\xaf\x18\xddV\x18\xc57\xf8\x1dY0\xf1\x9cc\x85\x9c\xc0q\x12\xc7\xb1Q\x819g?\r8N\xbb<\x04\xa2Q\xa5\xb3%\xabW&\x95x\x17\x99x\x038\xee\x94\x9e\xef\xeaY\x0b\x7f/\xce\xfb\x8bKy\xae\xc4U{\x1d\xb5\x1f\x9f\xc4etAW\xa7K\xb8m4j\x93\x1d\xff\x8a\x166f\xa3\x1e\xdf\'\xb1\xb4\x05\xa4\xe84]$\xd8\xe5\x03\x9f\xa2\x94g
# 1710249523,
# 0.0,0.0,0.0,0.0,
# 0.0,0.0,0.0,0.0,
# 6.3,6.3,6.3,6.3,
# 6.3,6.3,6.3,6.3,
# 6.3,6.3,6.3,6.3,
# 0.0,0.0,0.0,0.0,
# 0.0,0.0,0.0,0.0,
# -0.00,-0.00,-0.00,-0.00,
# 50.0,50.0,50.0,50.0,
# 0.0,0.0,0.0,0.0,
# 0.0,0.0,0.0,0.0,
#
# 0.0,0.7,2.4,0.0,
# 0.0,0.8,2.4,0.0,
# 0.0,
# 38.6,6.3,0.0,0.0,
# 38.6,6.3,0.0,0.0,
# 38.6,6.3,0.0,0.0,
# 38.5,27.0,0.0,0.0,
# 24.5,3.6,0.0,-0.00,
# 0.85,1.00,-0.00,
# 50.0,50.0,50.0,50.0,
# -6.2,-3.0,-7.7,-7.6,
# -0.00,-0.00,-0.00,-0.00,
# 0.00,0.00,0.00,0.00,
# 0.00,0.40,0.10,0.00,
# 0.00,0.00,0.00,0.00,
# 0.00,0.00,0.00,0.00,
# 0.00,0.00,0.00,0.00,
# 0.0,0.0,0.0,0.0,
# 0.38,0.37,0.38,0.36,
# 0.22,0.24,0.24,0.24,
# 0.0,0.0,0.0,0.0,

# 242.7,223.9,242.9,0.0,1.6,415.8,416.7,417.7,3.0,22.6,

# 18.85,16.33,16.31,2.51,0.88,33.0,32.2,0,0.0,
#
#
# 11.5,11.4,11.4,11.3,11.4,11.5,11.7,11.7,10.5,10.3,10.5,10.6,10.6,10.1,10.7,10.5,10.8,11.3,11.4,10.8,12.0,13.1,12.4,12.2,12.1,12.2,12.1,12.2,12.5,12.6,11.4,11.2,13.0,8.1,11.0,13.4,11.4,11.0,12.5,12.8,11.7,12.0,13.0,12.0,13.6,13.5,13.4,13.4,13.6,13.5,13.9,13.7,17.4,13.1,14.3,12.2,12.1,12.8,12.7,12.3,11.6,12.2,12.1,13.7,14.8,14.2,13.5,13.5,13.5,13.5,13.5,13.5,13.7,13.6,12.9,12.6,12.0,12.5,12.3,12.4,12.1,13.8,13.0,12.4,13.7,13.1,15.4,15.4

# 1710249026

# 0.0 0.0 0.0 0.0
# 0.0 0.0 0.0 0.0
# 6.3 6.3 6.3 6.3
# 6.3 6.3 6.3 6.3
# 6.3 6.3 6.3 6.3
# 0.0 0.0 0.0 0.0
# 0.0 0.0 0.0 0.0
# -0.00 -0.00 -0.00 -0.00
# 50.0 50.0 50.0 50.0
# 0.0 0.0 0.0 0.0
# 0.0 0.0 0.0 0.0

# 0.0 0.7 2.4 0.0
# 0.0 0.7 1.8 0.0
# 0.0
# 38.5 6.3 0.0 0.0
# 38.5 6.3 0.0 0.0
# 38.5 6.3 0.0 0.0
# 36.8 23.4 0.0 0.0

# 22.8 3.6 0.0 -0.00
# 0.88 1.00 -0.00
# 50.0 50.0 50.0 50.0
# -6.2 -3.0 -7.7 -7.6
# -0.00 -0.00 -0.00 -0.00
# 0.00 0.00 0.00 0.00
# 0.00 0.40 0.10 0.00
# 0.00 0.00 0.00 0.00
# 0.00 0.00 0.00 0.00
# 0.00 0.00 0.00 0.00
# 0.0 0.0 0.0 0.0
# 0.38 0.37 0.38 0.36
# 0.23 0.24 0.24 0.24
# 0.0 0.0 0.0 0.0
#
# 242.7 223.9 242.6 0.0 1.6 415.1 415.9 417.0 3.1 22.6
#
# 18.84 16.36 16.34 2.48 0.87 33.0 32.2 0 0.0
#
#
# 11.3 11.1 11.2 11.1 11.7 11.6 11.9 11.9 10.7 10.5 10.7 11.0 10.9 10.4 11.0 10.7 10.4 10.8 11.0 10.9 12.1 13.1 12.3 12.3 12.1 12.3 12.2 12.2 12.5 12.5 11.3 11.0 12.9 7.9 11.1 13.4 11.5 11.0 12.5 12.9 11.6 12.0 13.0 12.1 13.6 13.5 13.5 13.5 13.6 13.5 13.9 13.7 17.4 13.1 14.3 12.1 12.2 12.8 12.7 12.3 11.7 12.3 12.2 13.6 14.9 14.1 13.5 13.5 13.4 13.5 13.6 13.6 13.7 13.6 12.9 12.6 12.0 12.5 12.3 12.4 12.1 13.8 13.0 12.4 13.7 13.2 15.5 15.5

# 2站
# 1#~4#
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '-0.00', '-0.00', '-0.00', '-0.00',
# '50.0', '50.0', '50.0', '50.0',
# 35kV~站变
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.3', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '0.0', '0.0', '0.0', '0.0',
# '-0.00', '-0.00', '-0.00', '-0.00',
# '50.0', '50.0', '50.0', '50.0',
# 1#~4# 角度这些
# '-6.2', '-7.8', '-7.6', '-7.9',
# '-0.00', '-0.00', '-0.00', '-0.00',
# '0.00', '0.00', '0.00', '0.00',
# '0.00', '1.00', '0.20', '0.10',
# '0.00', '0.00', '0.00', '0.00',
# '0.00', '0.00', '0.00', '0.00',
# '0.00', '0.00', '0.00', '0.00',
# '0.0', '0.0', '0.0', '0.0',
# '0.38', '0.37', '0.37', '0.36',
# '0.22', '0.24', '0.23', '0.24',
# '0.0', '0.0', '0.0', '0.0',
# 直流系统
# '244.4', '225.1', '244.5', '0.0', '1.7', '403.4', '406.4', '405.3', '3.2', '15.6',
# 全站参数
# '18.66', '16.14', '16.13', '2.52', '0.76', '1.6', '1.5', '0', '0.0',
# 温度
# '1.6', '1.7', '1.7', '1.5', '1.7', '1.6', '1.8', '1.8', '2.2', '2.2', '1.5', '1.6', '1.6', '1.1', '1.4', '1.3', '1.6', '2.2', '2.4', '3.3', '4.6', '5.7',
# '2.3', '2.1', '2.1', '2.2', '2.1', '2.1', '2.1', '2.2', '2.7', '2.9', '3.7', '-3275.7', '1.8', '3.9', '2.3', '2.0', '3.2', '3.5', '2.6', '4.3', '5.4', '4.5',
# '2.6', '2.4', '2.4', '2.4', '2.6', '2.5', '2.7', '2.5', '5.5', '3.3', '4.2', '2.5', '2.4', '2.8', '2.8', '2.5', '1.7', '2.5', '2.6', '6.1', '7.1', '6.7',
# '2.4', '2.3', '2.3', '2.4', '2.4', '2.4', '2.4', '2.3', '3.1', '3.2', '2.1', '2.4', '2.3', '2.4', '2.3', '3.8', '3.2', '2.3', '3.6', '5.2', '7.6', '7.5'